
#ifndef SIXDOFHANDLER_H
#define SIXDOFHANDLER_H

#include <BSphereHandler>
#include <BSixdofConstraint>

using namespace BWE;

class SixdofHandler : public BSphereHandler
{
public:
	SixdofHandler();
	~SixdofHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

protected:
	BHolder<BNode>				_nodeA;
	BHolder<BNode>				_nodeB;
	BHolder<BSixdofConstraint>	_constraint;

};

#endif
